#usr/bin/python

from PyQt4.QtCore import *
from core.pySpec import PySpecBasis 
from core import pySpec as obj

class BaseController(obj.PySpecBasis):
	"""
	template controller
	"""
	attributes = ('sample_list', 'widget')
	
	def __init__(self, abstract_list, widget):
		PySpecBasis.__init__(self)
		
		if not isinstance(abstract_list, obj.ListSample) or not isinstance(abstract_list, obj.Sample):
			raise TypeError, "BaseController attribute must instance of Listsample or Sample"

		self.sample_list = lspl
		self.widget = widget
